﻿<%@ Page Title="" Language="C#" MasterPageFile="~/clerks/ClerkMaster.Master" AutoEventWireup="true"
    CodeBehind="Disbursement_Detail.aspx.cs" Inherits="LogicUniversity.clerks.Disbursement_Detail" %>

<%@ PreviousPageType VirtualPath="~/clerks/Disbursement.aspx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <form id="form1" runat="server">
    <div class="row-fluid">
        <div class="span8">
            <asp:GridView GridLines="None" ID="grdDisbursementDetail" CssClass="table table-hover" runat="server"
                AutoGenerateColumns="false" OnRowCommand="GridView1_RowCommand">
                <Columns>
                    <asp:BoundField DataField="Item_Code" HeaderText="Item Code" />
                    <asp:BoundField DataField="Need_Quanty" HeaderText="Needed" />
                    <asp:BoundField DataField="Actual_Quanty" HeaderText="Actual" />
                    <asp:BoundField DataField="Actual_Quanty" HeaderText="Received" />
                    <asp:ButtonField Text="Modify Receive" CommandName="ModifyReceive" />
                </Columns>
            </asp:GridView>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span3">
            <asp:Button CssClass="btn btn-primary" ID="btnComfirm" Text="Acknowledge" runat="server"
                OnClick="btnComfirm_Click" />
        </div>
        <div class="span2">
            <asp:LinkButton ID="lnkBack" runat="server" onclick="lnkBack_Click">Back</asp:LinkButton>
        </div>
    </div>
    <br /><br />
    <div class="row-fluid">
        <div class="span5">
            <asp:Panel CssClass="well" ID="pnlDiscripency" runat="server" Visible="false">
                <div class="row-fluid">
                    <div class="span3">
                        Item Code
                    </div>
                    <div class="span2">
                        <asp:Label ID="lblItem_Code" runat="server" />
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span3">
                       Received Qty
                    </div>
                    <div class="span2">
                        <asp:Label ID="lblReceived" runat="server" />
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span3">
                        Adjustment Qty
                    </div>
                    <div class="span4">
                        <asp:TextBox ID="txtAdjustmentQty" runat="server" />
                        <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span3">
                        Reason
                    </div>
                    <div class="span3">
                        <asp:TextBox TextMode="MultiLine" ID="txtReason" runat="server" />
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span2 offset3">
                        <asp:Button CssClass="btn" runat="server" Text="Save" ID="btnSave" OnClick="btnSave_Click" />
                    </div>
                    <div class="span2">
                        <asp:Button CssClass="btn" runat="server" Text="Cancel" ID="btnCancel" 
                            OnClick="btnCancel_Click" />
                    </div>
                </div>
                
                
            </asp:Panel>
        </div>
    </div>
    </form>
</asp:Content>
